﻿@model List<Forum>
@if (Model.Count > 0)
{
    @ForumContext.GetText(LanguageSection.GLOBAL, "SUB_FORUM")
    <ul class="sub-forum">

    @foreach (var f in  Model)
    {
        <li>@Html.Link(!string.IsNullOrWhiteSpace(f.RemoteUrl)?f.RemoteUrl:ForumContext.ForumLink(f.ForumId,f.ForumName,null),f.ForumName,null)  
        @if (f.TotalTopics>0)
        {
            @Html.Raw(string.Format("<span>({0}/{1})</span>",f.TotalTopics,f.TotalReplies))
        }
        </li>
    }

    </ul>
}
